(function() {
	seajs.config({
		// 设置路径，方便跨目录调用
		 paths : {
			 "static" : "../static"
		 },

		// 设置别名，方便调用
		alias : {
			"jQuery" : "jquery/jquery-seajs.min.js",
			"handlebars" : "handlebars/handlebars.seajs.min.js",
			"numeral" : "numeral/numeral.js",
			"underscore" : "underscore/underscore.js",
			"moment" : "moment/moment.js"
		},
		"charset" : "utf-8",
		"timeout" : 2000,
		"preload" : [ "jQuery" ]
	});
	var dotIndex = window.location.href.indexOf(".");
	var path = window.location.href.substring(0, dotIndex);

//	var jquery = [ "../static/jquery/jquery-1.9.0.min.js" ];
//
//	var initBootstrap = [ "../static/bootstrap/bootstrap.min.js",
//			"../static/bootstrap/bootstrap.css" ];
//
//	var initBootstrapTable = [ "../static/bootstrap/bootstrap-table.js",
//			"../static/bootstrap/bootstrap-table.css" ];
//
//	var bootstrapPlugin = [ "../static/bootstrap/bootstrap-editable.css",
//			"../static/bootstrap/bootstrap-editable.js",
//			"../static/bootstrap/bootstrap-table-editable.js",
//			"../static/bootstrap/bootstrap-paginator.js" ];
//
//	var layer = [ "../static/layer/skin/layer.css", "../static/layer/layer.js" ];
//
//	var echarts = [ "../static/echarts/echarts.common.min.js" ];
//
//	var select2 = [ "../static/select2/select2.js",
//			"../static/select2/select2.min.css" ];
//
//	var ajaxfileupload = [ "../static/ajaxfileupload/ajaxfileupload.js",
//			"../static/ajaxfileupload/jquery.fileupload.css" ];
//
//	var Jcrop = [ "../static/Jcrop/jquery.Jcrop.js",
//			"../static/Jcrop/jquery.Jcrop.css" ];
//
//	var jqueryui = [ "../static/jqueryui/jquery-ui-1.10.0.custom.min.js",
//			"../static/jqueryui/jquery-ui-timepicker-addon.js",
//			"../static/jqueryui/jquery-ui-1.10.0.custom.css" ];
//
//	var ztree = [ "../static/ztree/metro.css",
//			"../static/ztree/jquery.ztree.all-3.5.min.js" ];
//
//	var jqueryqrcode = [ "../static/jqueryqrcode/jquery.qrcode.min.js" ];
//
//	var other = [ "../static/js/common.js", "../static/js/top.js",
//			"../static/css/common.css", "../static/css/top.css" ];
//
	if(path.indexOf("/qaplus/login/login")<0){
		seajs.use("./../top/top", function(top) {
			if (top) {
				top.init();
			}
		});
	}
	seajs.use(path, function(page) {
		if (page) {
			page.init();
		}
	});
	
	
	
	
//	seajs.use(jquery);
//	seajs.use(initBootstrap);
//	seajs.use(initBootstrapTable);
//	seajs.use(bootstrapPlugin);
//	seajs.use(layer);
//	seajs.use(echarts);
//	seajs.use(select2);
//	seajs.use(ajaxfileupload);
//	seajs.use(Jcrop);
//	seajs.use(jqueryui);
//	seajs.use(ztree);
//	seajs.use(jqueryqrcode);
//	seajs.use(other);

}).call(this);

/* 毫无意义模板，只为了spm build验证通过，部署 */
define(function(require, exports, module) {

});